﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace database
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
         
        }

        private void MainForm_Load(object sender, EventArgs e)
        {

        }

        private void button3_Click(object sender, EventArgs e)
        {
            this.MainPanel.Controls.Clear();
            Control_Goods goods = new Control_Goods();
            goods.Show();
            this.MainPanel.Controls.Add(goods);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.MainPanel.Controls.Clear();
            Control_Staff hm = new Control_Staff();
            hm.Show();
            this.MainPanel.Controls.Add(hm);

        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {
            
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void MainForm_VIP_Click(object sender, EventArgs e)
        {
            this.MainPanel.Controls.Clear();
            Control_VIP vip = new Control_VIP();
            vip.Show();
            this.MainPanel.Controls.Add(vip);
        }

        private void MainForm_Shop_Click(object sender, EventArgs e)
        {
            this.MainPanel.Controls.Clear();
            Control_Shop shop = new Control_Shop();
            shop.Show();
            this.MainPanel.Controls.Add(shop);
        }

        private void button5_Click(object sender, EventArgs e)
        {
            this.MainPanel.Controls.Clear();
            Control_Input input = new Control_Input();
            input.Show();
            this.MainPanel.Controls.Add(input);
        }

        private void button6_Click(object sender, EventArgs e)
        {
            this.MainPanel.Controls.Clear();
            Control_Trade trade = new Control_Trade();
            trade.Show();
            this.MainPanel.Controls.Add(trade);
        }

        private void button1_Click_1(object sender, EventArgs e)
        {
            this.MainPanel.Controls.Clear();
            Control_VIPCard VIPcard = new Control_VIPCard();
            VIPcard.Show();
            this.MainPanel.Controls.Add(VIPcard);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.MainPanel.Controls.Clear();
            Control_ShopStaff shopStaff = new Control_ShopStaff();
            shopStaff.Show();
            this.MainPanel.Controls.Add(shopStaff);
        }

        private void button4_Click(object sender, EventArgs e)
        {
            this.MainPanel.Controls.Clear();
            Control_Stock stock = new Control_Stock();
            stock.Show();
            this.MainPanel.Controls.Add(stock);
        }
    }
}
